package com.hee.erp.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum WorkflowNodeTypeEnum {

    START(0,"发起人"),
    APPROVER(1,"审核人"),
    Copier(2,"抄送人");


    @EnumValue//标记数据库存的值是value
    @JsonValue//标记响应json值
    private Integer value;

    private final String name;

    WorkflowNodeTypeEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return value.toString();
    }
}
